<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>房屋信息系统</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/vue.js"></script>



    <link rel="stylesheet" href="css/index.css" />
</head>
<body>
<div id="wrap">
    <nav class="navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">Shakespeare</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="#">我是租客</a></li>
                    <li><a href="#">我是房东</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-top navbar-right">
                    <button id="chat-btn" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        聊天 <span class="caret"></span>
                    </button>
                    <dic id="test" class="dropdown-menu chat-panel">
                        <div class="btn-group" role="group" aria-label="...">
                            <button type="button" class="btn btn-default">房东董小姐</button>
                            <button type="button" class="btn btn-default">房东李大爷</button>
                            <button type="button" class="btn btn-default">租客裴大哥</button>
                        </div>
                        <div class="panel panel-default chat-content">
                            <div class="panel-body chat-messages" id="chat-area">
                                <p>房东董小姐：</p>
                            </div>
                        </div>
                        <input id="chat" class="form-control" type="text" placeholder="请输入聊天内容"/>
                    </dic>
                    <button class="btn1" data-toggle="modal" data-target="#login">
                        登录
                    </button>
                    <button class="btn1" data-toggle="modal" data-target="#register">
                        注册
                    </button>
                </ul>

            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container" id="app">
        <div class="row">
            <div class="col-sm-6 col-md-6">
                <div style="position:fixed;">
                    <ul style="padding-left: 2px">
                        <a href="#">首页</a>&emsp;/&emsp;
                        <a href="#">房源列表</a>&emsp;/&emsp;
                        <label>{{rentType}}</label>
                        <label>{{village}}</label>
                        <label>{{style}}</label>
                    </ul>
                    <div style="font-size: xx-large;">
                        <label>{{rentType}}</label>
                        <label>{{village}}</label>
                        <label>{{style}}</label>
                    </div>

                    <div style="font-size: x-large;">
                        &emsp;<label>{{price}}</label> 元/每月
                    </div>
                </div><br><br><br><br><br><br><br>
                <div style="position:fixed;">
                <div style="border:2px solid #e8e8e8;width: 500px;">
                    <div style="padding-top:5px;padding-left: 25px">
                                <span style="height: 40px">
                                    <p>&emsp;&emsp;地区&emsp;<label>{{region}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>&emsp;&emsp;面积&emsp;<label>{{area}}</label>㎡</p>
                                </span>
                        <span style="height: 40px">
                                    <p>&emsp;&emsp;楼层&emsp;<label>{{floor}}</label>层</p>
                                </span>
                        <span style="height: 40px">
                                    <p>&emsp;&emsp;户型&emsp;<label>{{style}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>&emsp;&emsp;朝向&emsp;<label>{{orientation}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>最短租期&emsp;<label>{{period}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>&emsp;&emsp;押金&emsp;<label>{{deposit}}</label>元</p>
                                </span>
                        <span style="height: 40px">
                                    <p>周边设施&emsp;<label>{{facility}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>交通出行&emsp;<label>{{traffic}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>装修情况&emsp;<label>{{decoration}}</label></p>
                                </span>
                        <span style="height: 40px">
                                    <p>保洁情况&emsp;<label>{{cleaning}}</label></p>
                                </span>
                    </div>
                    <div style="padding-left: 140px">
                        <button id="openchat" class="btn btn-primary" onclick="$('#test').show()">联系房东</button>
                        <button class="btn btn-primary" data-toggle="modal" data-target="#rent">
                            我要租房
                        </button>
                    </div>
                    <br>
                </div>
                    <br>
                </div>
            </div>

            <div class="col-sm-6 col-md-6">
                <div>
                    <!-- /.房间详情 -->
                    <div style="background: #fff;width: 500px;top: 0px;padding-top: 0px">
                        <ul class="nav nav-tabs">
                            <h3>房间详情</h3>
                            <li v-for="pic in pics">
                                <a href="#" v-on:click="setCurrentRoom(pic)">{{pic.type}}</a>
                            </li>
                        </ul>
                    </div>
                    <br><br>
                    <div v-if="showRoom">
                        <img v-bind:src="currentRoom.src" height="400" width="500" />
                    </div>
                    <!--<div>-->
                        <!--<iframe  style="border: #fff;width: 600px;height: 550px;scrolling:yes" src="roomdetail/1-bedroom.html">  </iframe>-->
                    <!--</div>-->

                </div>

                <div>
                    <div style="background: #fff;width: 555px;top: 0px;padding-top: 0px">
                        <ul class="nav nav-tabs">
                            <h3>设施详情</h3>
                            <li v-for="device in devices">
                                <a href="#" v-on:click="setCurrentFacility(device)">{{getDeviceName(device.name)}}</a>
                            </li>

                        </ul>
                    </div>
                    <div style="width: 500px" v-if="showDevice">
                        <label>{{currentDevice.description}}</label>
                        <img v-bind:src="currentDevice.pic" height="400" width="500" />
                    </div>
                    <!-- /.设施详情 -->
                    <!--<div>-->
                        <!--<iframe  style="border: #fff;width: 600px;height: 550px;scrolling:yes" src="facilities/1-bed.html">  </iframe>-->
                    <!--</div>-->

                </div>

                </div>
                </div>
                </div>
            </div>
                </div>
        </div>

        </div>
    </div>
</div>
<br><br>


<!-- /.我要租房 -->
<div class="modal fade" id="rent" index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    我要租房
                </h4>
            </div>
            <div class="modal-body">
                <div style="padding-left: 180px">
                    <div class="center">
                        <div>
                            <div>
                                <span>
                                    入住时间 &emsp;
                                    <label>
                                        <form action="/example/html5/demo_form.asp" method="get">
                                            <input type="date"/>
                                        </form>
                                        </label>
                                </span>
                            </div>
                            <div>
                                <span>
                                    退租时间 &emsp;
                                    <label><form action="/example/html5/demo_form.asp" method="get">
                                                <input type="date"/>
                                        </form>
                                        </label>
                                </span>
                            </div>

                            <div>
                                <span>
                                    &emsp; &emsp;租期 &emsp;
                                    <label>9</label>个月
                                </span>
                            </div>
                            <div>
                                <span>
                                    &emsp; &emsp;租金 &emsp;
                                    <label>9999</label>元/每月
                                </span>
                            </div>
                            <div>
                                <span>
                                    &emsp; &emsp;押金 &emsp;
                                    <label>1000</label>元
                                </span>
                            </div>
                            <div>
                                <span>
                                    &emsp; 总金额 &emsp;
                                    <label>9999</label>元
                                </span>
                            </div>
                        </div>

                    </div>
                </div>
                <br>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="submit" class="btn btn-primary">
                        确定
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</div>

<script src="js/chat.js"></script>
<script src="js/houseDetail.js"></script>
</body>
</html>